home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / command.mk,v < prev    next >
Encoding:
Text File  |  1992-05-18  |  38.0 KB  |  2,022 lines

  1. head     1.68;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    mottsmth:1.68; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.68
  10. date     92.04.13.18.33.52;  author elm;  state Exp;
  11. branches ;
  12. next     1.67;
  13.  
  14. 1.67
  15. date     92.03.13.14.24.08;  author jhh;  state Exp;
  16. branches ;
  17. next     1.66;
  18.  
  19. 1.66
  20. date     91.11.19.18.25.56;  author kupfer;  state Exp;
  21. branches ;
  22. next     1.65;
  23.  
  24. 1.65
  25. date     91.11.06.18.31.53;  author kupfer;  state Exp;
  26. branches ;
  27. next     1.64;
  28.  
  29. 1.64
  30. date     91.09.13.10.50.14;  author ouster;  state Exp;
  31. branches ;
  32. next     1.63;
  33.  
  34. 1.63
  35. date     91.05.23.19.18.16;  author kupfer;  state Exp;
  36. branches ;
  37. next     1.62;
  38.  
  39. 1.62
  40. date     91.05.23.16.03.10;  author kupfer;  state Exp;
  41. branches ;
  42. next     1.61;
  43.  
  44. 1.61
  45. date     91.05.23.14.02.21;  author kupfer;  state Exp;
  46. branches ;
  47. next     1.60;
  48.  
  49. 1.60
  50. date     91.05.22.23.38.09;  author kupfer;  state Exp;
  51. branches ;
  52. next     1.59;
  53.  
  54. 1.59
  55. date     91.04.30.12.09.25;  author kupfer;  state Exp;
  56. branches ;
  57. next     1.58;
  58.  
  59. 1.58
  60. date     90.11.15.23.20.16;  author jhh;  state Exp;
  61. branches ;
  62. next     1.57;
  63.  
  64. 1.57
  65. date     90.11.06.18.19.50;  author rab;  state Exp;
  66. branches ;
  67. next     1.56;
  68.  
  69. 1.56
  70. date     90.11.02.09.57.39;  author shirriff;  state Exp;
  71. branches ;
  72. next     1.55;
  73.  
  74. 1.55
  75. date     90.07.02.13.20.44;  author douglis;  state Exp;
  76. branches ;
  77. next     1.54;
  78.  
  79. 1.54
  80. date     90.04.21.11.35.08;  author ouster;  state Exp;
  81. branches ;
  82. next     1.53;
  83.  
  84. 1.53
  85. date     90.04.15.11.53.15;  author mendel;  state Exp;
  86. branches ;
  87. next     1.52;
  88.  
  89. 1.52
  90. date     90.02.28.11.42.50;  author brent;  state Exp;
  91. branches ;
  92. next     1.51;
  93.  
  94. 1.51
  95. date     90.02.27.17.42.56;  author douglis;  state Exp;
  96. branches ;
  97. next     1.50;
  98.  
  99. 1.50
  100. date     90.02.20.11.50.04;  author douglis;  state Exp;
  101. branches ;
  102. next     1.49;
  103.  
  104. 1.49
  105. date     90.02.08.15.14.37;  author douglis;  state Exp;
  106. branches ;
  107. next     1.48;
  108.  
  109. 1.48
  110. date     90.02.08.15.12.13;  author douglis;  state Exp;
  111. branches ;
  112. next     1.47;
  113.  
  114. 1.47
  115. date     90.02.01.01.07.29;  author tve;  state Exp;
  116. branches ;
  117. next     1.46;
  118.  
  119. 1.46
  120. date     90.01.11.22.03.53;  author jhh;  state Exp;
  121. branches ;
  122. next     1.45;
  123.  
  124. 1.45
  125. date     90.01.06.23.58.25;  author tve;  state Exp;
  126. branches ;
  127. next     1.44;
  128.  
  129. 1.44
  130. date     90.01.06.23.51.03;  author tve;  state Exp;
  131. branches ;
  132. next     1.43;
  133.  
  134. 1.43
  135. date     90.01.06.23.45.16;  author tve;  state Exp;
  136. branches ;
  137. next     1.42;
  138.  
  139. 1.42
  140. date     89.11.30.13.56.27;  author rab;  state Exp;
  141. branches ;
  142. next     1.41;
  143.  
  144. 1.41
  145. date     89.10.09.19.17.26;  author tve;  state Exp;
  146. branches ;
  147. next     1.40;
  148.  
  149. 1.40
  150. date     89.10.09.17.12.51;  author rab;  state Exp;
  151. branches ;
  152. next     1.39;
  153.  
  154. 1.39
  155. date     89.10.09.06.55.34;  author rab;  state Exp;
  156. branches ;
  157. next     1.38;
  158.  
  159. 1.38
  160. date     89.10.02.10.05.02;  author rab;  state Exp;
  161. branches ;
  162. next     1.37;
  163.  
  164. 1.37
  165. date     89.09.30.02.06.30;  author tve;  state Exp;
  166. branches ;
  167. next     1.36;
  168.  
  169. 1.36
  170. date     89.09.27.17.59.25;  author douglis;  state Exp;
  171. branches ;
  172. next     1.35;
  173.  
  174. 1.35
  175. date     89.09.27.17.44.07;  author douglis;  state Exp;
  176. branches ;
  177. next     1.34;
  178.  
  179. 1.34
  180. date     89.09.15.07.33.56;  author rab;  state Exp;
  181. branches ;
  182. next     1.33;
  183.  
  184. 1.33
  185. date     89.09.13.10.04.27;  author shirriff;  state Exp;
  186. branches ;
  187. next     1.32;
  188.  
  189. 1.32
  190. date     89.08.31.16.10.50;  author rab;  state Exp;
  191. branches ;
  192. next     1.31;
  193.  
  194. 1.31
  195. date     89.08.31.13.10.00;  author jhh;  state Exp;
  196. branches ;
  197. next     1.30;
  198.  
  199. 1.30
  200. date     89.07.21.18.29.37;  author douglis;  state Exp;
  201. branches ;
  202. next     1.29;
  203.  
  204. 1.29
  205. date     89.07.21.13.49.05;  author douglis;  state Exp;
  206. branches ;
  207. next     1.28;
  208.  
  209. 1.28
  210. date     89.07.20.17.36.04;  author mgbaker;  state Exp;
  211. branches ;
  212. next     1.27;
  213.  
  214. 1.27
  215. date     89.07.20.17.06.22;  author douglis;  state Exp;
  216. branches ;
  217. next     1.26;
  218.  
  219. 1.26
  220. date     89.07.13.13.56.04;  author ouster;  state Exp;
  221. branches ;
  222. next     1.25;
  223.  
  224. 1.25
  225. date     89.07.13.13.52.56;  author nelson;  state Exp;
  226. branches ;
  227. next     1.24;
  228.  
  229. 1.24
  230. date     89.07.02.23.30.34;  author rab;  state Exp;
  231. branches ;
  232. next     1.23;
  233.  
  234. 1.23
  235. date     89.06.23.13.11.34;  author jhh;  state Exp;
  236. branches ;
  237. next     1.22;
  238.  
  239. 1.22
  240. date     89.05.05.15.00.14;  author douglis;  state Exp;
  241. branches ;
  242. next     1.21;
  243.  
  244. 1.21
  245. date     89.04.10.09.44.21;  author douglis;  state Exp;
  246. branches ;
  247. next     1.20;
  248.  
  249. 1.20
  250. date     89.04.10.09.42.46;  author douglis;  state Exp;
  251. branches ;
  252. next     1.19;
  253.  
  254. 1.19
  255. date     89.04.03.22.23.22;  author douglis;  state Exp;
  256. branches ;
  257. next     1.18;
  258.  
  259. 1.18
  260. date     89.03.20.11.02.28;  author douglis;  state Exp;
  261. branches ;
  262. next     1.17;
  263.  
  264. 1.17
  265. date     89.03.19.17.38.28;  author mgbaker;  state Exp;
  266. branches ;
  267. next     1.16;
  268.  
  269. 1.16
  270. date     89.03.17.16.33.39;  author douglis;  state Exp;
  271. branches ;
  272. next     1.15;
  273.  
  274. 1.15
  275. date     89.03.15.22.24.54;  author douglis;  state Exp;
  276. branches ;
  277. next     1.14;
  278.  
  279. 1.14
  280. date     89.03.15.22.13.38;  author jhh;  state Exp;
  281. branches ;
  282. next     1.13;
  283.  
  284. 1.13
  285. date     89.02.22.13.05.00;  author brent;  state Exp;
  286. branches ;
  287. next     1.12;
  288.  
  289. 1.12
  290. date     89.01.15.13.50.51;  author ouster;  state Exp;
  291. branches ;
  292. next     1.11;
  293.  
  294. 1.11
  295. date     89.01.01.23.03.23;  author rab;  state Exp;
  296. branches ;
  297. next     1.10;
  298.  
  299. 1.10
  300. date     88.12.29.08.37.57;  author ouster;  state Exp;
  301. branches ;
  302. next     1.9;
  303.  
  304. 1.9
  305. date     88.12.28.17.08.08;  author ouster;  state Exp;
  306. branches ;
  307. next     1.8;
  308.  
  309. 1.8
  310. date     88.12.28.14.48.02;  author ouster;  state Exp;
  311. branches ;
  312. next     1.7;
  313.  
  314. 1.7
  315. date     88.12.28.10.43.37;  author mendel;  state Exp;
  316. branches ;
  317. next     1.6;
  318.  
  319. 1.6
  320. date     88.12.19.18.03.28;  author douglis;  state Exp;
  321. branches ;
  322. next     1.5;
  323.  
  324. 1.5
  325. date     88.12.14.14.16.43;  author ouster;  state Exp;
  326. branches ;
  327. next     1.4;
  328.  
  329. 1.4
  330. date     88.11.27.16.25.39;  author ouster;  state Exp;
  331. branches ;
  332. next     1.3;
  333.  
  334. 1.3
  335. date     88.11.23.17.28.27;  author ouster;  state Exp;
  336. branches ;
  337. next     1.2;
  338.  
  339. 1.2
  340. date     88.11.23.09.52.17;  author ouster;  state Exp;
  341. branches ;
  342. next     1.1;
  343.  
  344. 1.1
  345. date     88.11.10.14.23.21;  author ouster;  state Exp;
  346. branches ;
  347. next     ;
  348.  
  349.  
  350. desc
  351. @@
  352.  
  353.  
  354. 1.68
  355. log
  356. @Added support for dependency analysis on .cc (C++) files.
  357. @
  358. text
  359. @#
  360. # Makefile for commands.  This is a library Makefile that is included
  361. # by the Makefile's for individual commands.  The file that includes
  362. # this one should already have defined the following variables:
  363. #    NAME        name of program to be created
  364. #    SRCS        all source files, used for linting and making
  365. #            dependencies
  366. #    OBJS        object files from which to create it
  367. #    CLEANOBJS    object files to be removed as part of "make clean"
  368. #            (need not just be object files)
  369. #    TM        target machine type for object files etc.
  370. #    MACHINES    list of all target machines currently available
  371. #            for this program
  372. #    TYPE        a keyword identifying which sort of command this
  373. #            is;  used to determine where to install, etc.
  374. #
  375. # Optional variables that may be defined by the invoker:
  376. #    XAFLAGS        additional flags to pass to assembler
  377. #    XCFLAGS        additional flags to pass to linker
  378. #    DEPFLAGS    additional flags to pass to makedepend
  379. #    no_targets    if defined, this file will not define all of the
  380. #            basic targets (make, make clean, etc.)
  381. #    use_version    if defined, then this file will set things up
  382. #            to include a version number that is automatically
  383. #            incremented
  384. #
  385. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.67 92/03/13 14:24:08 jhh Exp Locker: elm $
  386. #
  387.  
  388. #
  389. # The variables below should be defined in md.mk, but they are given
  390. # default values just in case md.mk doesn't exist yet.
  391. #
  392. HDRS        ?=
  393. OBJS        ?=
  394. SRCS        ?=
  395.  
  396. #
  397. # First define search paths for libraries, include files, lint libraries,
  398. # and even sources.
  399. #
  400. .PATH.h        :
  401. .PATH.h        : $(TM).md . /sprite/lib/include /sprite/lib/include/$(TM).md
  402. .PATH.ln    : /sprite/lib/lint
  403. .PATH.c        :
  404. .PATH.c        : $(TM).md
  405. .PATH.s        :
  406. .PATH.s        : $(TM).md
  407.  
  408. #
  409. # Suffix for profiled targets.
  410. #
  411. PROFSUFFIX    ?= .pg
  412.  
  413. #
  414. # Important directories. 
  415. #
  416. MISCLIBDIR    ?= /sprite/lib/misc
  417. BINDIR        ?= /sprite/cmds.$(MACHINE)
  418.  
  419. #
  420. # System programs -- assign conditionally so they may be redefined in
  421. # including makefile.  These need to be defined absolutely so that we
  422. # can remake these programs without flakey new versions accidentally
  423. # getting used to make themselves
  424. #
  425. AS        ?= $(BINDIR)/as
  426. CC        ?= $(BINDIR)/cc
  427. CPLUSPLUS    ?= $(BINDIR)/g++
  428. CP        ?= $(BINDIR)/cp
  429. CPP        ?= $(BINDIR)/cpp -traditional -$
  430. CTAGS        ?= $(BINDIR)/ctags
  431. ETAGS        ?= /emacs/cmds/etags
  432. ECHO        ?= $(BINDIR)/echo
  433. LINT        ?= $(BINDIR)/lint
  434. MAKEDEPEND    ?= $(BINDIR)/makedepend
  435. MKVERSION    ?= $(BINDIR)/mkversion
  436. MV        ?= $(BINDIR)/mv
  437. RM        ?= $(BINDIR)/rm
  438. SED        ?= $(BINDIR)/sed
  439. TEST            ?= $(BINDIR)/test
  440. TOUCH        ?= $(BINDIR)/touch
  441. UPDATE        ?= $(BINDIR)/update
  442.  
  443. #
  444. # Several variables (such as where to install) are set based on the
  445. # TYPE variable.  Of course, any of these variables can be overridden
  446. # by explicit assignments.
  447. #
  448. TYPE        ?= unknown
  449. #if !empty(TYPE:Msprite)
  450. INSTALLDIR    ?= /sprite/cmds
  451. INSTALLMAN    ?= /sprite/man/cmds
  452. #elif !empty(TYPE:Mx)
  453. INSTALLDIR    ?= /X/cmds
  454. INSTALLMAN    ?= /X/man/cmds
  455. #elif !empty(TYPE:MX11R3)
  456. INSTALLDIR    ?= /mic/X11R3/cmds
  457. INSTALLMAN    ?= /mic/X11R3/man/cmds
  458. #elif !empty(TYPE:Mlocal)
  459. INSTALLDIR    ?= /local/cmds
  460. INSTALLMAN    ?= /local/man/cmds
  461. #elif !empty(TYPE:MX11R4)
  462. INSTALLDIR    ?= /X11/R4/cmds
  463. INSTALLMAN    ?= /X11/R4/man/cmds
  464. #elif !empty(TYPE:Memacs)
  465. INSTALLDIR    ?= /emacs/cmds
  466. INSTALLMAN    ?= /emacs/man/cmds
  467. #elif !empty(TYPE:Mdaemon)
  468. INSTALLDIR    ?= /sprite/daemons
  469. INSTALLMAN    ?= /sprite/man/daemons
  470. #elif !empty(TYPE:Madmin)
  471. INSTALLDIR    ?= /sprite/admin
  472. INSTALLMAN    ?= /sprite/man/admin
  473. #elif !empty(TYPE:Mpersonal)
  474. INSTALLDIR    ?= $(HOME)/cmds
  475. INSTALLMAN    ?= $(HOME)/man/cmds
  476. LOADFLAGS    += -L$(HOME)/lib/$(TM).md
  477. XCFLAGS        += -I$(HOME)/lib/include
  478. .PATH.h        : $(HOME)/lib/include
  479. #ifndef        USERBACKUP
  480. NOBACKUP    =
  481. #endif
  482. #endif
  483. #ifdef INSTALLDIR
  484. TMINSTALLDIR    ?= $(INSTALLDIR).$(TM)
  485. #endif
  486.  
  487. #
  488. # Figure out what stuff we'll pass to sub-makes.
  489. #
  490. PASSVARS    = 'INSTALLDIR=$(INSTALLDIR)' 'TM=$(TM)' $(.MAKEFLAGS)
  491. #ifdef        XCFLAGS
  492. PASSVARS    += 'XCFLAGS=$(XCFLAGS)'
  493. #endif
  494. #ifdef        XAFLAGS
  495. PASSVARS    += 'XAFLAGS=$(XAFLAGS)'
  496. #endif
  497. #ifdef        NOBACKUP
  498. PASSVARS    += 'NOBACKUP=$(NOBACKUP)'
  499. #endif
  500. #ifdef        BACKUPAGE
  501. PASSVARS    += 'BACKUPAGE=$(BACKUPAGE)'
  502. #endif
  503.  
  504. #
  505. # Flags. These are ones that are needed by *all* programs. Any other
  506. # ones should be added with the += operator in the command-specific makefile.
  507. # The FLAGS variables are defined with the += operator in case this file
  508. # is included after the main makefile has already defined them...
  509. #
  510.  
  511. #include    <tm.mk>
  512. CTFLAGS        ?= -wtd
  513. INSTALLFLAGS    ?=
  514. INSTALLMANFLAGS    ?=
  515. LINTFLAGS    ?= -m$(TM)
  516. XCFLAGS        ?=
  517. LOADFLAGS    ?=
  518. XAFLAGS        ?=
  519. #
  520. # The .INCLUDES variable already includes directories that should be
  521. # used by cc and other programs by default.  Remove them, just so that
  522. # the output looks cleaner.
  523. #
  524. # The dec compiler doesn't include /sprite/lib/include, so we must leave
  525. # the path as is when TM=ds3100.  
  526. #
  527.  
  528. #include <debugflags.mk>
  529.  
  530. #if !empty(TM:Mds3100) || !empty(TM:Mds5000)
  531. CFLAGS        += $(GFLAG) $(OFLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  532. #elif !empty(TM:Mspur)
  533. CFLAGS        += $(GFLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  534. #else
  535. CFLAGS        += $(GFLAG) $(OFLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  536. #endif
  537. CFLAGS        += $(.INCLUDES:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g)
  538. #if empty(TM:Mds3100) && empty(TM:Mds5000)
  539. AFLAGS        += $(TMAFLAGS) $(XAFLAGS)
  540. #else
  541. CFLAGS        += -I/sprite/lib/include -I/sprite/lib/include/$(TM).md
  542. AFLAGS        += $(.INCLUDES)
  543. #endif
  544.  
  545. #
  546. # Transformation rules: these have special features to place .o files
  547. # in md subdirectories, run preprocessor over .s files, and generate
  548. # .po files for profiling.
  549. #
  550.  
  551. .SUFFIXES    : .po
  552.  
  553. .c.o        :
  554.     $(RM) -f $(.TARGET)
  555.     $(CC) $(CFLAGS) -c $(.IMPSRC) -o $(.TARGET)
  556. .c.po        :
  557.     $(RM) -f $(.TARGET)
  558.     $(CC) $(CFLAGS) -DPROFILE -c $(.IMPSRC) -o $(.TARGET)
  559. .cc.o        :
  560.     $(RM) -f $(.TARGET)
  561.     $(CPLUSPLUS) $(CFLAGS) -c $(.IMPSRC) -o $(.TARGET)
  562. .cc.po        :
  563.     $(RM) -f $(.TARGET)
  564.     $(CPLUSPLUS) $(CFLAGS) -DPROFILE -c $(.IMPSRC) -o $(.TARGET)
  565. .s.po .s.o    :
  566. #if empty(TM:Mds3100) && empty(TM:Mds5000)
  567.     $(CPP) $(CFLAGS:M-[IDU]*) -m$(TM) -D$(TM) -D_ASM $(.IMPSRC) > $(.PREFIX).pp
  568.     $(AS) -o $(.TARGET) $(AFLAGS) $(.PREFIX).pp
  569.     $(RM) -f $(.PREFIX).pp
  570. #else
  571.     $(RM) -f $(.TARGET)
  572.     $(AS) $(AFLAGS) $(.IMPSRC) -o $(.TARGET)
  573. #endif
  574.  
  575. #
  576. # The following targets are .USE rules for creating things.
  577. #
  578.  
  579. #
  580. # MAKECMD usage:
  581. #    program : <objects> <libraries> MAKECMD
  582. #
  583. # Creates and links in the file version.o as well. Also makes program depend
  584. # on the state of the C library.
  585. #
  586. # Using .ALLSRC constrains the local.mk, in that additions to LIBS
  587. # must come before the system makefile(s).  The advantage (or at least
  588. # an advantage) is that it filters out duplicate .o files that would
  589. # appear in the OBJS list.  These duplicates can appear if the command
  590. # generates source files on-the-fly: the local.mk typically has a
  591. # line like OBJS += foo.o, and if mkmf is run after foo.c is created,
  592. # foo.o will appear twice.  Also, using .ALLSRC lets pmake generate
  593. # a command based on knowledge of the search path, rather than
  594. # relying on the particular tool (e.g., cc or ld) to do the search
  595. # path processing.
  596. #
  597. MAKECMD        : .USE -lc
  598.     @@echo "Generating date stamp"
  599.     @@$(RM) -f version.h
  600.     @@$(MKVERSION) > version.h
  601.     $(RM) -f $(TM).md/version.o
  602.     $(CC) $(CFLAGS) -c -o $(TM).md/version.o $(MISCLIBDIR)/version.c
  603.     $(RM) -f $(.TARGET)
  604.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(TM).md/version.o $(.ALLSRC:N-lc) 
  605. #if !empty(TM:Mspur) && empty(MACHINE:Mspur)
  606.     $(XLD) $(.TARGET)
  607. #endif
  608.  
  609. #
  610. # MAKECMDNOVERS usage:
  611. #    <program> : <objects> <libraries> MAKECMDNOVERS
  612. #
  613. # Similar to MAKECMD, except it doesn't create the version.[ho] files.
  614. #
  615. MAKECMDNOVERS    :  .USE -lc
  616.     $(RM) -f $(.TARGET)
  617.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(.ALLSRC:N-lc)
  618. #if !empty(TM:Mspur) && empty(MACHINE:Mspur)
  619.     $(XLD) $(.TARGET)
  620. #endif
  621.  
  622. #
  623. # MAKEINSTALL usage:
  624. #    install :: <dependencies> MAKEINSTALL
  625. #
  626. # The program is installed in $(TMINSTALLDIR) and backed-up to
  627. # $(TMINSTALLDIR).old
  628. #
  629. #ifndef NOBACKUP
  630. BACKUP        = -b $(TMINSTALLDIR).old
  631. #ifdef BACKUPAGE
  632. BACKUP += -B $(BACKUPAGE)
  633. #endif
  634. #else
  635. BACKUP        =
  636. #endif  NOBACKUP
  637.  
  638. #if !empty(TM:Mspur)
  639. # use a separate install script that doesn't strip
  640. # note that XLD has already been run
  641. MAKEINSTALL    : .USE
  642.     $(UPDATE) -m 775 $(BACKUP) $(INSTALLFLAGS) $(TM).md/$(NAME) \
  643.         $(TMINSTALLDIR)/$(NAME)
  644. #else
  645. MAKEINSTALL    : .USE
  646.     $(UPDATE) -m 775 -s $(BACKUP) $(INSTALLFLAGS) $(TM).md/$(NAME) \
  647.         $(TMINSTALLDIR)/$(NAME)
  648. #endif
  649.  
  650. #
  651. # MAKELINT usage:
  652. #    <fluff-file> : <sources to be linted> MAKELINT
  653. #
  654. # <fluff-file> is the place to store the output from the lint.
  655. #
  656. MAKELINT    : .USE
  657.     $(RM) -f $(.TARGET)
  658.     $(LINT) $(LINTFLAGS) $(CFLAGS:M-[IDU]*) $(.ALLSRC) > $(.TARGET) 2>&1
  659.  
  660. #
  661. # MAKEDEPEND usage:
  662. #    <dependency-file> : <sources> MAKEDEPEND
  663. #
  664. # Generate dependency file suitable for inclusion in future makes.
  665.  
  666. MAKEDEPEND    : .USE
  667.     @@$(TOUCH) $(DEPFILE)
  668. #if empty(TM:Mds3100) && empty(TM:Mds5000)
  669.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  670. #else
  671.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  672. #endif
  673.     @@$(MV) -f $(DEPFILE) $(DEPFILE).tmp
  674.     @@$(SED) -e '/^#/!s|^.|$(TM).md/&|' <$(DEPFILE).tmp > $(DEPFILE)
  675.     @@$(RM) -f $(DEPFILE).tmp
  676.  
  677. #if !defined(no_targets) && defined(NAME)
  678. #
  679. # We should define the main targets (make, make install, etc.).  See the
  680. # mkmf man page for details on what these do.
  681. #
  682. LIBS            ?=
  683.  
  684. default            :: $(TM).md/$(NAME)
  685. #if defined(use_version)
  686. $(TM).md/$(NAME)    : $(OBJS) $(LIBS) MAKECMD
  687. #else
  688. $(TM).md/$(NAME)    : $(OBJS) $(LIBS) MAKECMDNOVERS
  689. #endif
  690.  
  691.  
  692. clean            :: .NOEXPORT tidy 
  693.     $(RM) -f $(TM).md/$(NAME) $(TM).md/$(NAME)$(PROFSUFFIX)
  694.  
  695. tidy            :: .NOEXPORT
  696. #if defined(CLEANOBJS) && !empty(CLEANOBJS)
  697.     $(RM) -f $(CLEANOBJS) $(CLEANOBJS:M*.o:S/.o$/.po/g)
  698. #endif
  699.     $(RM) -f y.tab.c lex.yy.c core \
  700.             $(TM).md/lint \
  701.         a.out *~ $(TM).md/*~ gmon.out mon.out
  702.  
  703. DEPFILE = $(TM).md/dependencies.mk
  704.  
  705. depend            : $(DEPFILE)
  706. $(DEPFILE)        ! $(SRCS:M*.c) $(SRCS:M*.s) $(SRCS:M*.cc) MAKEDEPEND
  707.  
  708.  
  709. #
  710. # For "install", a couple of tricks.  First, allow local.mk to disable
  711. # by setting no_install.  Second, use :: instead of : so that local.mk
  712. # can augment install with additional stuff.  Third, don't install if
  713. # TMINSTALLDIR isn't set.
  714. #
  715. #ifndef no_install
  716. #ifdef TMINSTALLDIR
  717. install            :: $(TM).md/$(NAME) installman MAKEINSTALL
  718. #else
  719. install            :: .SILENT
  720.     echo "Can't install $(NAME):  no install directory defined"
  721. #endif TMINSTALLDIR
  722. #endif no_install
  723.  
  724.  
  725. #if empty(MANPAGES)
  726. installman        :: .SILENT
  727.     echo "There's no man page for $(NAME).  Please write one."
  728. #elif !empty(MANPAGES:MNONE)
  729. installman        ::
  730.  
  731. #elif defined(INSTALLMAN)
  732. installman        :: .SILENT $(MANPAGES)
  733.     $(UPDATE) -m 444 -l $(INSTALLMANFLAGS) $(MANPAGES) $(INSTALLMAN)
  734. #else
  735. installman        :: .SILENT
  736.     echo "Can't install man page(s): no install directory defined"
  737. #endif
  738.  
  739.  
  740. lint            : $(TM).md/lint
  741. $(TM).md/lint        : $(SRCS:M*.c) $(LIBS:M-l*) MAKELINT
  742.  
  743.  
  744. mkmf            :: .SILENT
  745.     mkmf
  746.  
  747.  
  748. newtm            :: .SILENT
  749.     if $(TEST) -d $(TM).md; then
  750.         true
  751.     else
  752.         mkdir $(TM).md;
  753.         chmod 775 $(TM).md;
  754.         mkmf -m$(TM)
  755.     fi
  756.  
  757.  
  758. profile            : $(TM).md/$(NAME)$(PROFSUFFIX)
  759. $(TM).md/$(NAME)$(PROFSUFFIX)    : $(OBJS:S/.o$/.po/g) $(LIBS:S/.a$/_p.a/g)
  760.     $(RM) -f $(.TARGET)
  761.     $(CC) $(CFLAGS) -pg -o $(.TARGET) $(.ALLSRC)
  762.  
  763.  
  764. tags            :: $(SRCS:M*.c) $(HDRS)
  765.     $(CTAGS) $(CTFLAGS) $(SRCS:M*.c) $(HDRS)
  766.  
  767. TAGS            :: $(SRCS:M*.[ch]) $(HDRS)
  768.     $(ETAGS) $(SRCS:M*.[ch])
  769.  
  770. version.h        :
  771.     $(RM) -f version.h
  772.     $(MKVERSION) > version.h
  773.  
  774. DISTFILES    ?=
  775.  
  776. dist        !
  777. #if defined(DISTDIR) && !empty(DISTDIR)
  778.     for i in Makefile local.mk sprite dist \
  779.         $(TM).md/md.mk $(SRCS) $(HDRS) $(DISTFILES)
  780.     do
  781.     if $(TEST) -e $${i}; then
  782.         $(UPDATE)  $${i} $(DISTDIR)/$${i} ;else true; fi
  783.     done
  784. #endif
  785.  
  786. #include    <all.mk>
  787.  
  788. #endif no_targets && NAME
  789.  
  790. .MAKEFLAGS    : -C        # No compatibility needed
  791.  
  792. #include    <rdist.mk>
  793. @
  794.  
  795.  
  796. 1.67
  797. log
  798. @header files are now passed to ctags, and the -d option makes it produce
  799. tags for #define's
  800. @
  801. text
  802. @d27 1
  803. a27 1
  804. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.66 91/11/19 18:25:56 kupfer Exp $
  805. d348 1
  806. a348 1
  807. $(DEPFILE)        ! $(SRCS:M*.c) $(SRCS:M*.s) MAKEDEPEND
  808. @
  809.  
  810.  
  811. 1.66
  812. log
  813. @makedepend doesn't like -U, so don't pass it in from CFLAGS.
  814. @
  815. text
  816. @d27 1
  817. a27 1
  818. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.65 91/11/06 18:31:53 kupfer Exp Locker: kupfer $
  819. d154 1
  820. a154 1
  821. CTFLAGS        ?= -wt
  822. d407 1
  823. a407 1
  824.     $(CTAGS) $(CTFLAGS) $(SRCS:M*.c)
  825. @
  826.  
  827.  
  828. 1.65
  829. log
  830. @Pass -U flags to cpp, lint, makedepend.
  831. @
  832. text
  833. @d27 1
  834. a27 1
  835. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.64 91/09/13 10:50:14 ouster Exp Locker: kupfer $
  836. d311 1
  837. a311 1
  838.     $(MAKEDEPEND) $(CFLAGS:M-[IDU]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  839. d313 1
  840. a313 1
  841.     $(MAKEDEPEND) $(CFLAGS:M-[IDU]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  842. @
  843.  
  844.  
  845. 1.64
  846. log
  847. @Put "." near the front of the library include path.
  848. @
  849. text
  850. @d27 1
  851. a27 1
  852. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.63 91/05/23 19:18:16 kupfer Exp $
  853. d209 1
  854. a209 1
  855.     $(CPP) $(CFLAGS:M-[ID]*) -m$(TM) -D$(TM) -D_ASM $(.IMPSRC) > $(.PREFIX).pp
  856. d300 1
  857. a300 1
  858.     $(LINT) $(LINTFLAGS) $(CFLAGS:M-[ID]*) $(.ALLSRC) > $(.TARGET) 2>&1
  859. d311 1
  860. a311 1
  861.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  862. d313 1
  863. a313 1
  864.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  865. @
  866.  
  867.  
  868. 1.63
  869. log
  870. @Add more comments about .ALLSRC, based on mail from Adam de Boor.
  871. @
  872. text
  873. @d27 1
  874. a27 1
  875. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.62 91/05/23 16:03:10 kupfer Exp Locker: kupfer $
  876. d43 1
  877. a43 1
  878. .PATH.h        : $(TM).md /sprite/lib/include /sprite/lib/include/$(TM).md
  879. @
  880.  
  881.  
  882. 1.62
  883. log
  884. @Add comments about .ALLSRC versus OBJS+LIBS.
  885. @
  886. text
  887. @d27 1
  888. a27 1
  889. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.61 91/05/23 14:02:21 kupfer Exp Locker: kupfer $
  890. d234 4
  891. a237 1
  892. # foo.o will appear twice.
  893. @
  894.  
  895.  
  896. 1.61
  897. log
  898. @Back out the OBJS+LIBS change.  The workaround for the .ALLSRC bug
  899. (moving the "LIBS +=" line) is less painful than fixing all the
  900. local.mk's that have "OBJS +=" for object files that may or may not
  901. already be in the OBJS list.  (If the object file appears twice, the
  902. link usually fails.)
  903. @
  904. text
  905. @d27 1
  906. a27 1
  907. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.59 91/04/30 12:09:25 kupfer Exp $
  908. d227 8
  909. @
  910.  
  911.  
  912. 1.60
  913. log
  914. @Use $(OBJS) and $(LIBS) instead of $(.ALLSRC) in the link step.  Using
  915. $(.ALLSRC) doesn't do the right thing if libraries appear in the
  916. local.mk after the SYSMAKEFILE is included.
  917. @
  918. text
  919. @d27 1
  920. a27 1
  921. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.59 91/04/30 12:09:25 kupfer Exp Locker: kupfer $
  922. d235 1
  923. a235 1
  924.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(TM).md/version.o $(OBJS) $(LIBS)
  925. d248 1
  926. a248 1
  927.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(OBJS) $(LIBS)
  928. @
  929.  
  930.  
  931. 1.59
  932. log
  933. @Set GFLAG and OFLAG in debugflags.mk.
  934. @
  935. text
  936. @d27 1
  937. a27 1
  938. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.58 90/11/15 23:20:16 jhh Exp Locker: kupfer $
  939. d235 1
  940. a235 1
  941.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(TM).md/version.o $(.ALLSRC:N-lc) 
  942. d248 1
  943. a248 1
  944.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(.ALLSRC:N-lc)
  945. @
  946.  
  947.  
  948. 1.58
  949. log
  950. @added ds5000
  951. @
  952. text
  953. @d27 1
  954. a27 1
  955. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.56 90/11/02 09:57:39 shirriff Exp Locker: rab $
  956. d169 3
  957. a171 15
  958. #ifndef NOOPTIMIZATION
  959. OFLAG        = -O
  960. #if !empty(TM:Mds3100) || !empty(TM:Mds5000)
  961. #if empty(CC:Mgcc)
  962. GFLAG     = -g3
  963. #else
  964. GFLAG    =
  965. #endif
  966. #else
  967. GFLAG     = -g
  968. #endif
  969. #else
  970. OFLAG        =    
  971. GFLAG        = -g
  972. #endif
  973. @
  974.  
  975.  
  976. 1.57
  977. log
  978. @checking this in for rab -- jhh
  979. @
  980. text
  981. @d171 1
  982. a171 1
  983. #if !empty(TM:Mds3100)
  984. d184 1
  985. a184 1
  986. #if !empty(TM:Mds3100)
  987. d192 1
  988. a192 1
  989. #if empty(TM:Mds3100)
  990. d220 1
  991. a220 1
  992. #if empty(TM:Mds3100)
  993. d311 1
  994. a311 1
  995. #if empty(TM:Mds3100)
  996. @
  997.  
  998.  
  999. 1.56
  1000. log
  1001. @Added /local/cmds info.
  1002. @
  1003. text
  1004. @d27 1
  1005. a27 1
  1006. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.55 90/07/02 13:20:44 douglis Exp $
  1007. d69 1
  1008. d212 7
  1009. a218 3
  1010.     $(CC) -S $(CFLAGS) -pg -DPROFILE $(.IMPSRC)
  1011.     $(AS) -o $(.TARGET) $(AFLAGS) $(.PREFIX).s
  1012.     $(RM) -f $(.PREFIX).s
  1013. @
  1014.  
  1015.  
  1016. 1.55
  1017. log
  1018. @added target to create TAGS file.
  1019. @
  1020. text
  1021. @d27 1
  1022. a27 1
  1023. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.54 90/04/21 11:35:08 ouster Exp Locker: douglis $
  1024. d99 3
  1025. @
  1026.  
  1027.  
  1028. 1.54
  1029. log
  1030. @Don't include header files explicitly in list of things to be
  1031. linted: some header files can only be #include-d in context.
  1032. @
  1033. text
  1034. @d27 1
  1035. a27 1
  1036. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.53 90/04/15 11:53:15 mendel Exp Locker: ouster $
  1037. d72 1
  1038. d401 3
  1039. @
  1040.  
  1041.  
  1042. 1.53
  1043. log
  1044. @Added /X11/R4 directories.
  1045. @
  1046. text
  1047. @d27 1
  1048. a27 1
  1049. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.52 90/02/28 11:42:50 brent Exp Locker: mendel $
  1050. d375 1
  1051. a375 1
  1052. $(TM).md/lint        : $(SRCS:M*.c) $(HDRS) $(LIBS:M-l*) MAKELINT
  1053. @
  1054.  
  1055.  
  1056. 1.52
  1057. log
  1058. @Eliminated the .SILENT for the invocation of the "update" command.
  1059. This way we can see how the thing is being backed up when it is installed.
  1060. @
  1061. text
  1062. @d27 1
  1063. a27 1
  1064. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.51 90/02/27 17:42:56 douglis Exp Locker: brent $
  1065. d98 3
  1066. @
  1067.  
  1068.  
  1069. 1.51
  1070. log
  1071. @added support for backup age flag BACKUPAGE
  1072. @
  1073. text
  1074. @d27 1
  1075. a27 1
  1076. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.50 90/02/20 11:50:04 douglis Exp Locker: douglis $
  1077. d272 1
  1078. a272 1
  1079. MAKEINSTALL    : .USE .SILENT
  1080. d276 1
  1081. a276 1
  1082. MAKEINSTALL    : .USE .SILENT
  1083. @
  1084.  
  1085.  
  1086. 1.50
  1087. log
  1088. @tried to add some consistency to ::/: operators, and fixed tve's TYPE==personal complaint
  1089. @
  1090. text
  1091. @d27 1
  1092. a27 1
  1093. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.49 90/02/08 15:14:37 douglis Exp $
  1094. d134 3
  1095. d262 3
  1096. @
  1097.  
  1098.  
  1099. 1.49
  1100. log
  1101. @changed version.o to go in $(TM).md so it can be created in parallel.
  1102. @
  1103. text
  1104. @d27 1
  1105. a27 1
  1106. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.48 90/02/08 15:12:13 douglis Exp Locker: douglis $
  1107. d252 1
  1108. a252 1
  1109. #    install : <dependencies> MAKEINSTALL
  1110. d309 1
  1111. a309 1
  1112. default            : $(TM).md/$(NAME)
  1113. @
  1114.  
  1115.  
  1116. 1.48
  1117. log
  1118. @RAB changes for dist
  1119. @
  1120. text
  1121. @d27 1
  1122. a27 1
  1123. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.47 90/02/01 01:07:29 tve Exp Locker: rab $
  1124. d229 2
  1125. d232 1
  1126. a232 1
  1127.     $(CC) $(CFLAGS) -o $(.TARGET) $(LOADFLAGS) $(MISCLIBDIR)/version.c $(.ALLSRC:N-lc)
  1128. @
  1129.  
  1130.  
  1131. 1.47
  1132. log
  1133. @fixed the fact that -I/sprite/lib/include and -I/sprite/lib/include/ds3100.md
  1134. appeared *before* include dirs specified in a local.mk (all of course on
  1135. a ds3100).
  1136. @
  1137. text
  1138. @d27 1
  1139. a27 1
  1140. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.46 90/01/11 22:03:53 jhh Exp Locker: tve $
  1141. d398 2
  1142. a399 1
  1143.     for i in Makefile local.mk $(TM).md/md.mk $(SRCS) $(HDRS) $(DISTFILES)
  1144. @
  1145.  
  1146.  
  1147. 1.46
  1148. log
  1149. @made installman depend upon man pages in case you have a package that
  1150. builds the man pages somehow
  1151. @
  1152. text
  1153. @d27 1
  1154. a27 1
  1155. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.45 90/01/06 23:58:25 tve Exp Locker: jhh $
  1156. d180 1
  1157. a181 1
  1158. CFLAGS        += $(.INCLUDES:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g)
  1159. d184 1
  1160. a184 1
  1161. CFLAGS        += $(.INCLUDES)
  1162. @
  1163.  
  1164.  
  1165. 1.45
  1166. log
  1167. @gcc on the ds3100 doesn't take a -g flag, fixed that...
  1168. @
  1169. text
  1170. @d27 1
  1171. a27 1
  1172. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.44 90/01/06 23:51:03 tve Exp Locker: tve $
  1173. d355 1
  1174. a355 1
  1175. installman        :: .SILENT
  1176. @
  1177.  
  1178.  
  1179. 1.44
  1180. log
  1181. @if TM is ds3100 and CC contains the string gcc, then use -g instead
  1182. of -g3
  1183. @
  1184. text
  1185. @d27 1
  1186. a27 1
  1187. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.43 90/01/06 23:45:16 tve Exp Locker: tve $
  1188. d160 2
  1189. a161 1
  1190. #if !empty(TM:Mds3100) && empty(CC:Mgcc)
  1191. d163 3
  1192. @
  1193.  
  1194.  
  1195. 1.43
  1196. log
  1197. @*** empty log message ***
  1198. @
  1199. text
  1200. @d27 1
  1201. a27 1
  1202. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.42 89/11/30 13:56:27 rab Exp Locker: jhh $
  1203. d160 1
  1204. a160 1
  1205. #if !empty(TM:Mds3100) 
  1206. @
  1207.  
  1208.  
  1209. 1.42
  1210. log
  1211. @Changed dist: to dist!,
  1212. @
  1213. text
  1214. @d27 1
  1215. a27 1
  1216. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.41 89/10/09 19:17:26 tve Exp Locker: rab $
  1217. d320 1
  1218. a320 1
  1219.         a.out *~ $(TM).md/*~ version.h gmon.out mon.out
  1220. @
  1221.  
  1222.  
  1223. 1.41
  1224. log
  1225. @Added INSDTALLDIR, INSTALLMAN for TYPE == X11R3
  1226. @
  1227. text
  1228. @d27 1
  1229. a27 1
  1230. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.40 89/10/09 17:12:51 rab Exp Locker: tve $
  1231. d390 1
  1232. a390 1
  1233. DISTOBJS    ?=
  1234. d392 1
  1235. a392 1
  1236. dist:
  1237. d394 1
  1238. a394 1
  1239.     for i in Makefile local.mk $(TM).md/md.mk $(SRCS) $(HDRS) $(DISTOBJS)
  1240. @
  1241.  
  1242.  
  1243. 1.40
  1244. log
  1245. @Check $(CLEANOBJS) before make tidy.
  1246. @
  1247. text
  1248. @d27 1
  1249. a27 1
  1250. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.39 89/10/09 06:55:34 rab Exp Locker: rab $
  1251. d95 3
  1252. @
  1253.  
  1254.  
  1255. 1.39
  1256. log
  1257. @Fixed distribution stuff.
  1258. @
  1259. text
  1260. @d27 1
  1261. a27 1
  1262. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.38 89/10/02 10:05:02 rab Exp Locker: rab $
  1263. d311 6
  1264. a316 4
  1265. tidy            :: .NOEXPORT 
  1266.     $(RM) -f $(CLEANOBJS) $(CLEANOBJS:M*.o:S/.o$/.po/g) \
  1267.             y.tab.c lex.yy.c core \
  1268.         $(TM).md/lint \
  1269. @
  1270.  
  1271.  
  1272. 1.38
  1273. log
  1274. @Added Distribution stuff.
  1275. @
  1276. text
  1277. @d27 1
  1278. a27 1
  1279. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.36 89/09/27 17:59:25 douglis Exp $
  1280. d79 1
  1281. d363 1
  1282. a363 1
  1283.     if test -d $(TM).md; then
  1284. d391 2
  1285. a392 1
  1286.     if test -e $${i}; then $(UPDATE)  $${i} $(DISTDIR)/$${i} ;fi
  1287. @
  1288.  
  1289.  
  1290. 1.37
  1291. log
  1292. @added DEPFLAGS to the MAKEDEPEND rules
  1293. @
  1294. text
  1295. @d27 1
  1296. a27 1
  1297. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.36 89/09/27 17:59:25 douglis Exp
  1298. d284 1
  1299. a284 2
  1300. #TvE    $(MAKEDEPEND) $(CFLAGS:M-[ID]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  1301.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC) $(DEPFLAGS)
  1302. d286 1
  1303. a286 2
  1304. #TvE    $(MAKEDEPEND) $(CFLAGS:M-[ID]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  1305.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC) $(DEPFLAGS)
  1306. d388 1
  1307. a388 2
  1308.     for i in Makefile local.mk $(MANPAGES) $(TM).md/md.mk \
  1309.         $(SRCS) $(HDRS) $(DISTOBJS)
  1310. d390 1
  1311. a390 1
  1312.     if test -e $${i}; then $(UPDATE) -m 664 $${i} $(DISTDIR)/$${i} ;fi
  1313. a391 2
  1314. #else
  1315.     @@echo "Sorry, no distribution directory defined for $(NAME)."
  1316. @
  1317.  
  1318.  
  1319. 1.36
  1320. log
  1321. @enable -O for ds3100, with -g3 when needed
  1322. @
  1323. text
  1324. @d27 1
  1325. a27 1
  1326. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.35 89/09/27 17:44:07 douglis Exp Locker: douglis $
  1327. d284 2
  1328. a285 1
  1329.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  1330. d287 2
  1331. a288 1
  1332.     $(MAKEDEPEND) $(CFLAGS:M-[ID]*:S|^-I/sprite/lib/include$||g:S|^-I/sprite/lib/include/$(TM).md$||g) -m $(TM) -w60 -f $(DEPFILE) $(.ALLSRC)
  1333. d389 3
  1334. a391 2
  1335. #if !empty(DISTDIR)
  1336.     for i in Makefile local.mk $(TM).md/md.mk $(SRCS) $(HDRS) $(DISTOBJS)
  1337. d395 2
  1338. @
  1339.  
  1340.  
  1341. 1.35
  1342. log
  1343. @bob's changes for dist
  1344. @
  1345. text
  1346. @d27 1
  1347. a27 1
  1348. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.34 89/09/15 07:33:56 rab Exp Locker: rab $
  1349. d152 1
  1350. a152 2
  1351. # the path as is when TM=ds3100.  Also, the dec port isn't ready for the -O
  1352. # flag yet.
  1353. a153 1
  1354. GFLAG        = -g
  1355. d156 5
  1356. d163 1
  1357. @
  1358.  
  1359.  
  1360. 1.34
  1361. log
  1362. @Added -m$(TM) flag to cpp.
  1363. @
  1364. text
  1365. @d27 1
  1366. a27 1
  1367. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.33 89/09/13 10:04:27 shirriff Exp Locker: rab $
  1368. d379 10
  1369. @
  1370.  
  1371.  
  1372. 1.33
  1373. log
  1374. @Fixed assembler directives so ds3100 doesn't run preprocessor.
  1375. @
  1376. text
  1377. @d27 1
  1378. a27 1
  1379. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.32 89/08/31 16:10:50 rab Exp Locker: shirriff $
  1380. d194 1
  1381. a194 1
  1382.     $(CPP) $(CFLAGS:M-[ID]*) -D$(TM) -D_ASM $(.IMPSRC) > $(.PREFIX).pp
  1383. @
  1384.  
  1385.  
  1386. 1.32
  1387. log
  1388. @Added -D_ASM to .s.o rule.
  1389. @
  1390. text
  1391. @d27 1
  1392. a27 1
  1393. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.31 89/08/31 13:10:00 jhh Exp Locker: rab $
  1394. d193 1
  1395. d197 4
  1396. @
  1397.  
  1398.  
  1399. 1.31
  1400. log
  1401. @need to strip out standard include path when calling makedepend
  1402. @
  1403. text
  1404. @d27 1
  1405. a27 1
  1406. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.30 89/07/21 18:29:37 douglis Exp Locker: jhh $
  1407. d193 1
  1408. a193 1
  1409.     $(CPP) $(CFLAGS:M-[ID]*) -D$(TM) $(.IMPSRC) > $(.PREFIX).pp
  1410. @
  1411.  
  1412.  
  1413. 1.30
  1414. log
  1415. @changed newtm to do mkmf for only the new machine type
  1416. @
  1417. text
  1418. @d27 1
  1419. a27 1
  1420. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.29 89/07/21 13:49:05 douglis Exp Locker: douglis $
  1421. d274 1
  1422. d276 3
  1423. @
  1424.  
  1425.  
  1426. 1.29
  1427. log
  1428. @fixed typo making OFLAG come out as 0FLAG and confusing pmake.
  1429. @
  1430. text
  1431. @d27 1
  1432. a27 1
  1433. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.28 89/07/20 17:36:04 mgbaker Exp Locker: douglis $
  1434. d354 1
  1435. a354 1
  1436.         mkmf
  1437. @
  1438.  
  1439.  
  1440. 1.28
  1441. log
  1442. @Got rid of extra porting stuff for sun4.
  1443. @
  1444. text
  1445. @d27 1
  1446. a27 1
  1447. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.27 89/07/20 17:06:22 douglis Exp Locker: mgbaker $
  1448. d162 1
  1449. a162 1
  1450. CFLAGS        += $(GFLAG) $(0FLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  1451. @
  1452.  
  1453.  
  1454. 1.27
  1455. log
  1456. @added check for TYPE=emacs, and mary changed something for $(OFLAG).
  1457. @
  1458. text
  1459. @d27 1
  1460. a27 1
  1461. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.26 89/07/13 13:56:04 ouster Exp Locker: douglis $
  1462. a144 3
  1463. #if !empty(TM:Msun4)
  1464. LOADFLAGS    += -L/sprite/lib/sun4.md
  1465. #endif
  1466. d151 2
  1467. a152 2
  1468. # The sun4 compiler doesn't include /sprite/lib/include, so we must leave
  1469. # the path as is when TM=sun4.  Also, the sun4 port isn't ready for the -O
  1470. d161 1
  1471. a161 1
  1472. #if !empty(TM:Msun4) || !empty(TM:Mds3100)
  1473. d168 1
  1474. a168 1
  1475. #if empty(TM:Msun4) && empty(TM:Mds3100)
  1476. a170 3
  1477. #elif !empty(TM:Msun4)
  1478. CFLAGS        += $(.INCLUDES)
  1479. AFLAGS        += $(TMAFLAGS) $(XAFLAGS)
  1480. a208 1
  1481. #if empty(TM:Msun4)
  1482. a211 1
  1483. #endif
  1484. a212 4
  1485. #if !empty(TM:Msun4)
  1486.     $(CC) -c $(CFLAGS) $(MISCLIBDIR)/version.c $(.ALLSRC:N-lc)
  1487.     ld -msun4 -o $(.TARGET) $(LOADFLAGS) -e start $(OBJS) $(LIBS) /sprite/lib/sun4.md/libc.a
  1488. #else
  1489. a213 1
  1490. #endif
  1491. a225 4
  1492. #if !empty(TM:Msun4)
  1493.     $(CC) -c $(CFLAGS) $(.ALLSRC:N-lc)
  1494.     ld -msun4 -o $(.TARGET) $(LOADFLAGS) -e start $(OBJS) $(LIBS) /sprite/lib/sun4.md/libc.a
  1495. #else
  1496. a226 1
  1497. #endif
  1498. @
  1499.  
  1500.  
  1501. 1.26
  1502. log
  1503. @Support NOOPTIMIZATION.
  1504. @
  1505. text
  1506. @d27 1
  1507. a27 1
  1508. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.24 89/07/02 23:30:34 rab Exp $
  1509. d94 3
  1510. d165 1
  1511. a165 1
  1512. CFLAGS        += $(GFLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  1513. @
  1514.  
  1515.  
  1516. 1.25
  1517. log
  1518. @Added ds3100 support.
  1519. @
  1520. text
  1521. @d156 1
  1522. d158 3
  1523. @
  1524.  
  1525.  
  1526. 1.24
  1527. log
  1528. @Fixed sun4 stuff to work with gcc & gld.
  1529. @
  1530. text
  1531. @d27 1
  1532. a27 1
  1533. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.23 89/06/23 13:11:34 jhh Exp Locker: rab $
  1534. d157 1
  1535. a157 1
  1536. #if !empty(TM:Msun4)
  1537. d164 1
  1538. a164 1
  1539. #if empty(TM:Msun4)
  1540. d166 4
  1541. d172 1
  1542. a173 1
  1543. AFLAGS        += $(TMAFLAGS) $(XAFLAGS)
  1544. @
  1545.  
  1546.  
  1547. 1.23
  1548. log
  1549. @*** empty log message ***
  1550. @
  1551. text
  1552. @d27 1
  1553. a27 1
  1554. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.21 89/04/10 09:44:21 douglis Exp Locker: douglis $
  1555. d212 1
  1556. a212 2
  1557.     $(LD) -o /tmp/$(.TARGET) $(LOADFLAGS) -Bstatic -e start -T 2020 -Tdata 40000 $(OBJS) $(LIBS) /sprite/src/lib/c/sun4.md/libc.a
  1558.     mv -f /tmp/$(.TARGET) $(.TARGET)
  1559. d230 1
  1560. a230 2
  1561.     $(LD) -o /tmp/$(.TARGET) $(LOADFLAGS) -Bstatic -e start -T 2020 -Tdata 40000 $(OBJS) $(LIBS) /sprite/src/lib/c/sun4.md/libc.a
  1562.     mv -f /tmp/$(.TARGET) $(.TARGET)
  1563. @
  1564.  
  1565.  
  1566. 1.22
  1567. log
  1568. @added a missing endif.
  1569. @
  1570. text
  1571. @d103 3
  1572. d141 1
  1573. d143 1
  1574. a143 1
  1575. LOADFLAGS    = -L/sprite/lib/sun4.md
  1576. d157 5
  1577. a161 1
  1578. #if empty(TM:Msun4)
  1579. a162 2
  1580. #else
  1581. CFLAGS        += $(GFLAG) $(TMCFLAGS) $(XCFLAGS) -I.
  1582. d215 1
  1583. a215 1
  1584.     $(CC) $(CFLAGS) -o $(.TARGET) $(MISCLIBDIR)/version.c $(.ALLSRC:N-lc)
  1585. d217 1
  1586. a217 1
  1587. #if !empty(TM:Mspur)
  1588. d234 1
  1589. a234 1
  1590.     $(CC) $(CFLAGS) -o $(.TARGET) $(.ALLSRC:N-lc)
  1591. d236 1
  1592. a236 1
  1593. #if !empty(TM:Mspur)
  1594. d335 1
  1595. a335 1
  1596. installman        : .SILENT
  1597. d341 1
  1598. a341 1
  1599. installman        : .SILENT
  1600. d344 1
  1601. a344 1
  1602. installman        : .SILENT
  1603. @
  1604.  
  1605.  
  1606. 1.21
  1607. log
  1608. @default to no backup for personal commands.
  1609. @
  1610. text
  1611. @d27 1
  1612. a27 1
  1613. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.20 89/04/10 09:42:46 douglis Exp Locker: douglis $
  1614. d105 1
  1615. @
  1616.  
  1617.  
  1618. 1.20
  1619. log
  1620. @mary's changes for sun4
  1621. @
  1622. text
  1623. @d27 1
  1624. a27 1
  1625. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.19 89/04/03 22:23:22 douglis Exp Locker: mgbaker $
  1626. d103 2
  1627. @
  1628.  
  1629.  
  1630. 1.19
  1631. log
  1632. @added 'tidy' target.
  1633. @
  1634. text
  1635. @d27 1
  1636. a27 1
  1637. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.18 89/03/20 11:02:28 douglis Exp Locker: douglis $
  1638. d135 3
  1639. d144 4
  1640. d150 1
  1641. d152 3
  1642. d195 1
  1643. d199 1
  1644. d201 5
  1645. d207 1
  1646. d220 5
  1647. d226 1
  1648. @
  1649.  
  1650.  
  1651. 1.18
  1652. log
  1653. @make lint depend on hdrs
  1654. @
  1655. text
  1656. @d27 1
  1657. a27 1
  1658. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.17 89/03/19 17:38:28 mgbaker Exp Locker: douglis $
  1659. d269 4
  1660. a272 1
  1661. clean            :: .NOEXPORT
  1662. a273 1
  1663.         $(TM).md/$(NAME) $(TM).md/$(NAME)$(PROFSUFFIX) \
  1664. @
  1665.  
  1666.  
  1667. 1.17
  1668. log
  1669. @Added sun4 compiler necessities.
  1670. @
  1671. text
  1672. @d27 1
  1673. a27 1
  1674. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.16 89/03/17 16:33:39 douglis Exp Locker: mgbaker $
  1675. d314 1
  1676. a314 1
  1677. $(TM).md/lint        : $(SRCS:M*.c) $(LIBS:M-l*) MAKELINT
  1678. @
  1679.  
  1680.  
  1681. 1.16
  1682. log
  1683. @added lint to make clean list of files to remove
  1684. @
  1685. text
  1686. @d27 1
  1687. a27 1
  1688. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.15 89/03/15 22:24:54 douglis Exp Locker: douglis $
  1689. d144 1
  1690. d146 3
  1691. @
  1692.  
  1693.  
  1694. 1.15
  1695. log
  1696. @added check for MANPAGES = NONE to override complaint about lack of man
  1697. pages.
  1698. @
  1699. text
  1700. @d27 1
  1701. a27 1
  1702. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.14 89/03/15 22:13:38 jhh Exp Locker: douglis $
  1703. d269 1
  1704. @
  1705.  
  1706.  
  1707. 1.14
  1708. log
  1709. @added 'profile' target
  1710. @
  1711. text
  1712. @d27 1
  1713. a27 1
  1714. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.12 89/01/15 13:50:51 ouster Exp $
  1715. d296 3
  1716. @
  1717.  
  1718.  
  1719. 1.13
  1720. log
  1721. @added GFLAG so it can be overridden from the command line
  1722. to produce better optimized executables
  1723. @
  1724. text
  1725. @d51 5
  1726. d102 1
  1727. d160 1
  1728. a160 1
  1729.     $(CC) -S $(CFLAGS) -p -DPROFILE $(.IMPSRC)
  1730. d256 1
  1731. d264 1
  1732. d267 3
  1733. a269 2
  1734.         $(TM).md/$(NAME) y.tab.c lex.yy.c core \
  1735.         a.out *~ $(TM).md/*~ version.h
  1736. d272 1
  1737. d276 1
  1738. d292 1
  1739. d304 1
  1740. d308 1
  1741. d312 1
  1742. d321 7
  1743. @
  1744.  
  1745.  
  1746. 1.12
  1747. log
  1748. @Added type "personal".
  1749. @
  1750. text
  1751. @d27 1
  1752. a27 1
  1753. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.11 89/01/01 23:03:23 rab Exp $
  1754. d135 3
  1755. a137 1
  1756. CFLAGS        += -g -O $(TMCFLAGS) $(XCFLAGS) -I.
  1757. d179 3
  1758. d192 3
  1759. d210 2
  1760. a211 1
  1761. # use a separate install script
  1762. a214 1
  1763.     $(XLD) $(TMINSTALLDIR)/$(NAME)
  1764. @
  1765.  
  1766.  
  1767. 1.11
  1768. log
  1769. @fixed /srpite/admin/man to read /sprite/admin/man
  1770. @
  1771. text
  1772. @d27 1
  1773. a27 1
  1774. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.10 88/12/29 08:37:57 ouster Exp Locker: rab $
  1775. d95 2
  1776. @
  1777.  
  1778.  
  1779. 1.10
  1780. log
  1781. @When installing man pages, copy files referenced by symbolic links,
  1782. not the links themselves.
  1783. @
  1784. text
  1785. @d27 1
  1786. a27 1
  1787. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.9 88/12/28 17:08:08 ouster Exp Locker: ouster $
  1788. d94 1
  1789. a94 1
  1790. INSTALLMAN    ?= /srpite/man/admin
  1791. @
  1792.  
  1793.  
  1794. 1.9
  1795. log
  1796. @Documentation cleanup.
  1797. @
  1798. text
  1799. @d27 1
  1800. a27 1
  1801. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.8 88/12/28 14:48:02 ouster Exp $
  1802. d276 1
  1803. a276 1
  1804.     $(UPDATE) -m 444 $(INSTALLMANFLAGS) $(MANPAGES) $(INSTALLMAN)
  1805. @
  1806.  
  1807.  
  1808. 1.8
  1809. log
  1810. @Switched to use TYPE.  Added "installman" target.
  1811. @
  1812. text
  1813. @a10 2
  1814. #    INSTALLDIR    place to install program (without the
  1815. #            machine-dependent suffix;  it will get added here).
  1816. d27 1
  1817. a27 1
  1818. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.6 88/12/19 18:03:28 douglis Exp $
  1819. d268 1
  1820. a268 1
  1821. #endif
  1822. @
  1823.  
  1824.  
  1825. 1.7
  1826. log
  1827. @Changed to only byte spur binaries in the installed directory.
  1828. @
  1829. text
  1830. @d16 2
  1831. a56 1
  1832. TMINSTALLDIR    ?= $(INSTALLDIR).$(TM)
  1833. d80 23
  1834. d126 1
  1835. d190 1
  1836. a190 1
  1837. #    install : <files to install> MAKEINSTALL
  1838. d192 2
  1839. a193 2
  1840. # The sources are installed in $(TMINSTALLDIR) (which is $(INSTALLDIR)
  1841. # with $(TM) appended to it), and backed-up to $(TMINSTALLDIR).old
  1842. d204 1
  1843. a204 1
  1844.     $(UPDATE) -m 775 $(BACKUP) $(INSTALLFLAGS) $(.ALLSRC) \
  1845. d209 1
  1846. a209 1
  1847.     $(UPDATE) -m 775 -s $(BACKUP) $(INSTALLFLAGS) $(.ALLSRC) \
  1848. d261 2
  1849. a262 1
  1850. # can augment install with additional stuff.
  1851. d265 6
  1852. a270 1
  1853. install            :: $(TM).md/$(NAME) MAKEINSTALL
  1854. d272 11
  1855. @
  1856.  
  1857.  
  1858. 1.6
  1859. log
  1860. @define things like TMINSTALLDIR only if not already defined.
  1861. @
  1862. text
  1863. @d27 1
  1864. a27 1
  1865. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.5 88/12/14 14:16:43 ouster Exp Locker: douglis $
  1866. a178 1
  1867.     $(XLD) -s $(.ALLSRC)
  1868. d181 1
  1869. @
  1870.  
  1871.  
  1872. 1.5
  1873. log
  1874. @Mods to support making with version.c and version.h
  1875. @
  1876. text
  1877. @d27 1
  1878. a27 1
  1879. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.4 88/11/27 16:25:39 ouster Exp Locker: ouster $
  1880. d53 3
  1881. a55 3
  1882. MISCLIBDIR    = /sprite/lib/misc
  1883. BINDIR        = /sprite/cmds.$(MACHINE)
  1884. TMINSTALLDIR    = $(INSTALLDIR).$(TM)
  1885. @
  1886.  
  1887.  
  1888. 1.4
  1889. log
  1890. @Changes to allow commands to extend some standard targets.
  1891. @
  1892. text
  1893. @d23 3
  1894. d27 1
  1895. a27 1
  1896. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.3 88/11/23 17:28:27 ouster Exp $
  1897. d53 1
  1898. a53 1
  1899. MISCLIBDIR    = /sprite/src/lib/misc
  1900. d218 3
  1901. d222 1
  1902. d259 4
  1903. @
  1904.  
  1905.  
  1906. 1.3
  1907. log
  1908. @Revisions to make "make newtm" work.
  1909. @
  1910. text
  1911. @d24 1
  1912. a24 1
  1913. # $Header: /sprite/lib/pmake/RCS/command.mk,v 1.2 88/11/23 09:52:17 ouster Exp Locker: ouster $
  1914. d78 1
  1915. a78 1
  1916. PASSVARS    = 'INSTALLDIR=$(INSTALLDIR)' $(.MAKEFLAGS)
  1917. d217 1
  1918. a217 1
  1919. clean            ! .NOEXPORT
  1920. d238 1
  1921. a238 1
  1922. mkmf            ! .SILENT
  1923. d241 1
  1924. a241 1
  1925. newtm            ! .SILENT
  1926. @
  1927.  
  1928.  
  1929. 1.2
  1930. log
  1931. @Major changes to finalize the new C library (move include.new to
  1932. include, etc.).
  1933. @
  1934. text
  1935. @d24 1
  1936. a24 1
  1937. # $Header: /sprite/lib/pmake/RCS/command2.mk,v 1.38 88/11/06 11:43:42 ouster Exp $
  1938. d28 8
  1939. d241 8
  1940. a248 3
  1941. newtm            ! .IGNORE
  1942.     mkdir $(TM).md
  1943.     mkmf
  1944. @
  1945.  
  1946.  
  1947. 1.1
  1948. log
  1949. @Initial revision
  1950. @
  1951. text
  1952. @d5 1
  1953. a5 1
  1954. #    PROGRAM        program to be created
  1955. a30 2
  1956. .PATH.a        :
  1957. .PATH.a        : /sprite/lib/$(TM).md
  1958. d32 1
  1959. a32 2
  1960. .PATH.h        : $(TM).md /sprite/lib/include.new \
  1961.             /sprite/lib/include.new/$(TM).md
  1962. d44 1
  1963. d52 1
  1964. a52 1
  1965. AS        ?= /sprite/cmds/as
  1966. d60 1
  1967. a60 1
  1968. MKVERSION    ?= /sprite/cmds/mkversion
  1969. d88 4
  1970. a91 1
  1971. #include    <tmflags.mk>
  1972. d94 7
  1973. a100 1
  1974. CFLAGS        += $(TMCFLAGS) -I. $(.INCLUDES) $(XCFLAGS)
  1975. a101 2
  1976. LINTFLAGS    ?= -S
  1977. INSTALLFLAGS    ?=
  1978. d120 1
  1979. a120 1
  1980.     $(CPP) $(CFLAGS:M-[ID]*) $(.IMPSRC) > $(.PREFIX).pp
  1981. d156 2
  1982. a157 2
  1983. # The sources are installed in $(INSTALLDIR).$(TM) and backed-up to
  1984. # $(INSTALLDIR).$(TM).old
  1985. d160 1
  1986. a160 1
  1987. BACKUP        = -b $(INSTALLDIR).$(TM).old
  1988. d170 1
  1989. a170 1
  1990.         $(INSTALLDIR).$(TM)/$(PROGRAM)
  1991. d174 1
  1992. a174 1
  1993.         $(INSTALLDIR).$(TM)/$(PROGRAM)
  1994. d200 1
  1995. a200 1
  1996. #if !defined(no_targets) && defined(PROGRAM)
  1997. d206 2
  1998. a207 2
  1999. default            : $(TM).md/$(PROGRAM)
  2000. $(TM).md/$(PROGRAM)    : $(OBJS) $(LIBS) MAKECMDNOVERS
  2001. d209 9
  2002. d224 1
  2003. a224 1
  2004. install            :: $(TM).md/$(PROGRAM) MAKEINSTALL
  2005. d230 2
  2006. a231 3
  2007. DEPFILE = $(TM).md/dependencies.mk
  2008. depend            : $(DEPFILE)
  2009. $(DEPFILE)        ! $(SRCS:M*.c) $(SRCS:M*.s) MAKEDEPEND
  2010. d233 3
  2011. a235 4
  2012. clean            ! .NOEXPORT
  2013.     $(RM) -f $(CLEANOBJS) $(CLEANOBJS:M*.o:S/.o$/.po/g) \
  2014.         $(TM).md/$(PROGRAM) y.tab.c lex.yy.c core \
  2015.         a.out *~ $(TM).md/*~ version.h
  2016. d242 1
  2017. a242 3
  2018. #endif no_targets && PROGRAM
  2019.  
  2020. mkmf makemake    :: .NOTMAIN    # Does nothing. Says nothing
  2021. @
  2022.